WeDevs\Dokan\REST\ProductController D

Total Complexity 239
Dependencies 13
Dependents 0
Total lines 2,284
Lines of code 1,663
Logical lines of code 452
Comment lines 402
Methods 37
Properties 4

Methods 37

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
15
79 225
get_item_schema()
D
15
1 611
prepare_objects_query()
C
34 25 89
set_product_images()
A
43 15 47
prepare_data_for_response()
A
33 12 89
register_routes()
A
30 1 198
get_attributes()
A
45 9 41
validation_before_create_item()
A
50 9 25
save_product_shipping_data()
A
51 8 27
get_images()
S
45 6 44
validation_before_update_item()
S
56 6 15
save_downloadable_files()
S
55 5 18
validation_before_delete_item()
S
58 5 13
get_default_attributes()
S
54 4 21
get_attribute_options()
S
61 4 12
validate_post_author_override()
S
65 4 8
get_latest_product()
S
58 3 15
get_featured_product()
S
58 3 15
get_best_selling_product()
S
58 3 15
get_top_rated_product()
S
58 3 15
get_related_product()
S
60 3 13
get_downloads()
S
61 3 13
get_attribute_taxonomy_name()
S
61 3 12
prepare_links()
S
58 2 16
save_taxonomy_terms()
S
65 3 9
save_default_attributes()
S
68 3 7
get_taxonomy_terms()
S
62 2 11
create_product_permissions_check()
S
79 2 3
delete_product_permissions_check()
S
79 2 3
get_product_permissions_check()
S
79 2 3
get_single_product_permissions_check()
S
79 2 3
update_product_permissions_check()
S
79 2 3
get_attribute_taxonomy_label()
S
73 1 5
get_object()
S
80 1 3
get_product_summary()
S
66 1 8
get_product_summary_permissions_check()
S
80 1 3
get_multistep_categories()
S
72 1 5